#include <OgreColourValue.h>
#include <OgrePrerequisites.h>

#define DLL_EXPORT __declspec(dllexport)

using namespace Ogre;

extern "C" DLL_EXPORT ColourValue *getColourValue(float red, float green, float blue, float alpha)
{
    return new ColourValue(red, green, blue, alpha);
}

extern "C" DLL_EXPORT float *get_ColourValueRptr(ColourValue *ptr)
{
    return &ptr->r;
}

extern "C" DLL_EXPORT float *get_ColourValueGptr(ColourValue *ptr)
{
    return &ptr->g;
}

extern "C" DLL_EXPORT float *get_ColourValueBptr(ColourValue *ptr)
{
    return &ptr->b;
}

extern "C" DLL_EXPORT float *get_ColourValueAptr(ColourValue *ptr)
{
    return &ptr->a;
}
